/**
 * Coryright 2015-2020 www.eyaomall.cn
 * All rights reserved.
 * @author tumingjun
 * @date 2016年8月10日
 *
 */

package com.eyaomall.wxmanage.dao;

import org.springframework.stereotype.Repository;

import com.eyaomall.wxmanage.model.po.Shop;
import com.eyaomall.wxmanage.model.vo.ShopVO;
import com.lycheeframework.core.annotation.NameSpace;
import com.lycheeframework.core.support.DaoSupport;

/**
 * @author tumingjun
 *
 */
@Repository
@NameSpace("shop")
public class ShopDao extends DaoSupport<Shop>{
	
	public boolean update(ShopVO shopVO){
		
		return super.update(shopVO) > 0 ? true : false;
	}
	
	public boolean changeStatus(ShopVO shopVO){
		
		return super.update("activeMerchants", shopVO) > 0 ? true : false;
	}

}
